

import { createRouter, createWebHashHistory } from 'vue-router';
const router = createRouter({
    history: createWebHashHistory(),
    routes: [
        {
            path: '/',
            redirect: '/login'
        },
        {
            path: '/login',
            name: 'login',
            component: () => import('@/views/login.vue'),
        },
        {
            path: '/chat',
            name: 'chat',
            component: () => import('@/views/chat.vue'),
        },
        {
            path: '/layout',
            name: 'layout',
            component: () => import('@/views/layout.vue'),
        }
    ] as any,
});

export default router;